interrupt the worker thread when stopping
delay-retry job deletion until no failed jobs are left