/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h
After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
virtual void ShutdownAfterError()