Ps3 controller doesn't work with bluetooth after shut down lakka

Hello guys, i’ve a problem with the bluetooth connection (ps3 controller). I’ve paired it with prompt via ssh with this guide http://www.lakka.tv/doc/Wireless-Dualshock/ and works, but when i turn off my Cubox-i4pro, controller doesn’t turn off and when i re turn on my cubox, bluetooth doesn’t work and i’ve to re do the procedure via ssh. How can i solve?