closes urllib.urlopen() methods