add more exception handling to scrape tasks