fail on error, fixes #22