Fix accumulation of socket.close code. Ready to finish Game.js and then the website