/Engine/Source/Runtime/Engine/Classes/Engine/GameEngine.h
Called when the game window closes (ends the game)
void OnGameWindowClosed ( const [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [SWindow](API\Runtime\SlateCore\Widgets\SWindow) > & WindowBeingClosed )