Improved connection thread code

The connection thread now calls DungeonProtocol.protocol and
expects it to throw a PlayerIsQuittingException when the player
wants to quit.