/Engine/Source/Runtime/CoreUObject/Public/UObject/LinkerSave.h
Closes and deletes the Saver (file, memory or custom writer) which will close any associated file handle. Returns false if the owned saver contains errors after closing it, true otherwise.
bool CloseAndDestroySaver()