Refactor job failure.

It shouldn't be the job of the worker to do failure stuff, the job
should handle that all itself.