Capture qsub's exit code correctly.