Added timeout for the case that a job is stuck on a dead worker