/Engine/Source/Editor/UnrealEd/Public/EditorModeManager.h
Handles the notification when a world is going through GC to clean up any modes pending deactivation.
void OnWorldCleanup ( [UWorld](API\Runtime\Engine\Engine\UWorld) * InWorld, bool bSessionEnded, bool bCleanupResources )