void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (_networkLogs != null) { _networkLogs.DeInitialize(null); _networkLogs.SessionStart -= network_NetworkSessionStart; _networkLogs.SessionEnd -= network_NetworkSessionEnd; _networkLogs = null; } if (_pluginLogs != null) { _pluginLogs.DeInitialize(); _pluginLogs = null; } }