fixing progress on connection failed + tests, adding device reboot in debug mode