public static void Close(IRender render) { render?.CloseRender(); render?.SetCore(null); var core = GetCore(render); if (core == null) { return; } core.Render = null; core.Close(); }