Exit with the correct error code

Stops npm scripts on fail
Merge pull request #7 from Impromptu/fixup-build

Exit with the correct error code