private static void Ending(int code = 0) { watcher.EndWatching(); Log.Info("プログラム終了"); Environment.Exit(code); }