Add a task which unregisters dead workers.