Add urlopen() check to resolve()