/Engine/Source/Editor/EditorFramework/Public/Toolkits/ToolkitManager.h
Call this to close an existing toolkit
void CloseToolkit ( const [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [IToolkit](API\Editor\EditorFramework\Toolkits\IToolkit) > ClosingToolkit )