Terminate client and gamePlay when game ends.