results file if its job fails. Contributed by Harsh J. (cherry picked from commit 09b8241e6e369ee00241efcc2e048e710dbcccd1)