Allow a dedicated error-handler to be set