throw exception instead of dying
added exception msg
set cURL fn invocation timeout