public void Quit() { isRunning = false; List <WorkerManager> workers = Consoles.SelectMany(c => c.Workers).ToList(); Task.WaitAll( workers.Select(w => w.StopAsync()).ToArray() ); }