Fix #621 fix job re-queueing on hard shutdown (e.g. SIGTERM).