prevent crash when all workers are gone
Merge pull request #188 from Wijnand/bugs/no_workers_crash

prevent crash when all workers are gone