Exit if a non zero status code is returned.
Merge pull request #3056 from tgxworld/exit_on_non_zero_status_code

Exit if a non zero status code is returned.