public void Dispose() { Leave(); Global.Dispose(); Context.Dispose(); if (OwnsRuntime) { Runtime.Dispose(); } }