close the socket when the user touches the back button in the gamepad view