Added confirm mode and return handler for job queue failures.