Updated server to close connections to users when game is over