catch exception raised if url is not reachable