Handle exceptions

When a service invocation throws an exception like a `EDAMUserException` the error callback is not called, causing your node.js application to crash. This fix just handles exceptions and passes then to the `onerror` callback.