Try at catching errors from pdf.js workers.