Improve error handling

I want to see why [the test on Travis CI](https://travis-ci.org/1000ch/node-cwebp-bin/builds/34493391) fails.