private static void ResetData()
 {
     LaunchManager.GameProcess = null;
     SettingsManager.InvalidateXmlData();
     HistoryManager.RestorePatchedFiles();
     HistoryManager.Delete();
     LaunchManager.Idle();
 }
        private void guiHome_FormClosing(object sender, FormClosingEventArgs e)
        {
            LaunchManager.GameProcess?.Dispose();

            // reset
            SettingsManager.InvalidateXmlData();
            HistoryManager.RestorePatchedFiles();
            HistoryManager.Delete();

            // dispose loggers so we can delete empty logs
            AppContextManager.Dispose();
            SettingsManager.Dispose();
            HistoryManager.Dispose();
            LaunchManager.Dispose();
            PatchManager.Dispose();
            PreferencesManager.Dispose();
        }