public virtual void Shutdown() { //variantArrayStackCompactNow(); if (mGlobal != null) { try { mGlobal.Invalidate(0, null, mGlobal); } catch (VariantException) { } catch (TjsException) { } mGlobal.Clear(); mGlobal = null; } if (mCache != null) { mCache = null; } }