close urllib2 connection properly