Log curl_exec error for failure tracing

Log errors of curl_exec