SidebarDiagnostics.Settings.Window_Closing C# (CSharp) Method