public static void RemoveWorker() { lock (Workers) { var worker = Workers.Last(); worker.Stop(); worker.Wait(); Workers.Remove(worker); } }