void OnApplicationQuit() { // be a good matchmaking citizen and leave any queue immediately Matchmaking.LeaveQueue(); }