In my other articles on web scraping with Puppeteer, the code works nicely if it never encounter any errors. But once it hit an error, most likely a timeout error while waiting for page content to load like example below at line 13. The whole scraper will hang and causes memory leak.