Use non-successful exit code when something goes wrong
Merge pull request #610 from jmazzi/bugfix/exit_codes

Use non-successful exit code when something goes wrong