s[i].close();
do {
msg = receiveMessage();
failOnErrorMessage(msg);
} while (!msg.hasGameListPlayerLeftMessage());
GameListPlayerLeftMessage gameListLeftMsg = msg.getGameListPlayerLeftMessage();
assertEquals(gameId, gameListLeftMsg.getGameId());
assertEquals(playerId[i], gameListLeftMsg.getPlayerId());
}
// Wait for game list update which marks close of game.
do {
msg = receiveMessage();