public void Abort()
{
foreach (
ThreadDistributor threadDistributor in threadDistributors.Where(threadDistributor => threadDistributor != null)){
threadDistributor.Abort();
}
if (registeredThreads != null){
foreach (Thread t in registeredThreads.Where(t => t != null)){
t.Abort();
}
}
}