Handle exceptions from calls to cheerio