Fixed issue with exception being thrown on cUrl error processing