catch any exception from pycurl and show an error