protected override void OnExit(ExitEventArgs e) { base.OnExit(e); _container.If(container => container != null && !container.IsDisposed).Dispose(); }