private void OnApplicationExit(object sender, ExitEventArgs e) { Current.Exit -= OnApplicationExit; this.compositionRoot.Dispose(); this.logger.LogAlways(_ => "=========== Application Exiting ==========="); }