internal static void DisposeAll() { lock (Threads) { foreach (var item in Threads.Items) item.Item2.Dispose(); } }