On error die with return code 1 (for compability with build systems).
Merge pull request #1 from johnlepikhin/master

On error die with return code 1 (for compatibility with build systems).