desactivate main loop when mobile app is off