application to reboot a device and avoid lost of it