private void ExecuteApplicationEnd(object sender, EventArgs e) { ADNotificationManager.Stop(); DeviceClassCache.Instance.Stop(); ADUserCache.Stop(); MailboxSessionCache.Stop(); DeviceBehaviorCache.Stop(); ExchangeDiagnosticsHelper.UnRegisterDiagnosticsComponents(); this.resetAutoBlockedDeviceCounterTimer.Dispose(); GlobalSettings.SyncLog.Dispose(); using (Process currentProcess = Process.GetCurrentProcess()) { AirSyncDiagnostics.LogEvent(AirSyncEventLogConstants.Tuple_AirSyncUnloaded, new string[] { currentProcess.Id.ToString(CultureInfo.InvariantCulture) }); } }