Correct script exit status

TE-567