In case the job finished with errors don't process further and print the error (cherry picked from commit 12dc4e6a)