Added reboot code to ensure dongles/app doesn't get stuck