better exception handling in scrape_utils