fixing reboot logic for IOSRemoteProxy