removed call to error_log and added detail exception output from curl execute to capturing exception