Close connection when game ends