When back button is pressed disconnect from server