Allow for custom error handlers for services
Merge pull request #375 from esteve/custom-error-handler

Custom error handler