protected override void CleanupManagedResources() { if (Logger != null) { Logging.UnregisterLogger(Logger); Logger.Dispose(); } base.CleanupManagedResources(); }