Catches the disconnect exception, and quits the program if the other player disconnects.