close the connection in scrape_url thread