Fix and test handling when a player quits the game.