Currently there is no good way to detect if mission ends. By ending I mean player first hosts a mission and then clicks "save & exit" to end the game and returns to lobby. It would be useful to have new event handler executed so that game ending code can be called. For example the mission could save something to database before ending
The new MissionEventHandler could be called "onGameEnding" or whatever is suitable
The event should work in SP/MP/Dedicated server