jobs: Introduce stop_all function to stop job submission on error.