public void Close() { looper.Close(); // let all peers in group exit peerGroup.ExitAll("Game is closed.", null); idPool.RecycleID(GameId); status = GameStatus.Closed; }