Add ability to handle curl errors to the CurlConsumer