fixed handling of a task where the worker died