improve error handling in pw_scraper