Fix exit code check.
Merge pull request #4322 from AndresTanasijczuk/retryjob

Fix exit code check.