cleaned things up a bit, added error for when all workers are dead