//Stop the program, stops processes and dispose dispoables private static void Close() { _isRunning = false; _interpretor.Stop(); foreach (Thread t in _threads.Values) { t.Abort(); } foreach (Timer t in _timers.Values) { t.Dispose(); } LOGGER.Dump(); _registry.Save($@"{DATA_DIR}/karuta.data"); Console.WriteLine("GoodBye"); }