Detect if map is in the process of closing down?

When you run “open someMap” the game goes through an destroys all actors on the current map.

This causes pawns to call DetachFromController(), which in turn results in the Controller calling PawnDied(). I use PawnDied() to capture stats about the number of deaths etc.

Is there a way to know that the current map is in the process of closing down, so i can avoid running unnecessary logic?

I’ve just seen that there is a GameEnding() event in GameInfo.