(#3867) Detect held jobs and stop trying to SSH to them.