Added error handler to configuration which is called when a message handler errors