// Ends the game session for all and disconnects the players
    public void TerminateGameSession()
    {
        Console.WriteLine("Terminating session and Task");
        // Let FleetIQ know we are done
        var gameLiftConfig = new AmazonGameLiftConfig {
            RegionEndpoint = this.server.regionEndpoint
        };
        var gameLiftClient = new AmazonGameLiftClient(gameLiftConfig);
        var deregisterGameServerRequest = new DeregisterGameServerRequest();

        deregisterGameServerRequest.GameServerGroupName = Server.fleetIqGameServerGroup;
        deregisterGameServerRequest.GameServerId        = this.server.GetGameServerId();
        var response = gameLiftClient.DeregisterGameServerAsync(deregisterGameServerRequest);

        response.Wait();
        Console.WriteLine("Deregistered from FleetIQ, terminate Task...");
        Application.Quit();
    }