Exit with status 1 for failures

Fixes #19.