Sweeps up failed/completed and stuck jobs from the execution queue.