Fail on errors, fixes #3