add catch CurlException for  Couldn't resolve host