Add dead job queue, fixes #1471