Add break if submit job raises an error