private static void ConsoleCancelKeyPress(object sender, ConsoleCancelEventArgs e) { lock (Locker) { if (bootstraps != null) { bootstraps.Dispose(); bootstraps = null; } } }