Stop sending and receiving messages when game is ended