The app now keeps working properly after getting disconnected.