Override back button to exit only when disconnected