public override bool Exit() { if (InterfaceMain != null) { InterfaceMain.Dispose(); InterfaceMain = null; } if (_lifetimeScope != null) { _lifetimeScope.Dispose(); _lifetimeScope = null; } return true; }