private void Window_Closing(object sender, CancelEventArgs e) { ImageSelectionWindow.Instance?.CloseForced(); HotkeyController.Clear(); SaveData(); Environment.Exit(0); }