public static void Stop() { _logFunc("Stop."); try { while (Disposables.Any()) { Disposables.Pop().Dispose(); } } catch (Exception e) { _logFunc("Exception4: " + e.Message); throw; } _logFunc("Stopped."); }