In the Custom Game Server documentation, it says:
It is also important to make certain that your server build exits once the last player leaves the session, for two reasons. First, the game server hosting service in PlayFab does not terminate game server instances explicitly. Second, the log file(s), as well as any other output files specified, are collected in S3 by our game server hosting service only when the instance ends.
How do you make your server build exit? Do you just call something like Application.Shutdown or Application.Exit?
I searched through the Server API and Admin API but couldn't find anything that sounded like what I need.