Correct script exit status
TE-567
Merge pull request #5806 from edx/ammar/te-567

Correct script exit status