Fix bug with worker shutdown failing for reattemptable jobs.

Closes #469