ensure exceptions return non 0 status code
Merge pull request #1192 from stefanpenner/non-zero-on-failure

Non zero on failure