return first error from checkJobStates
drop unused error return value from determineJobState