JS: try/catch around the parser in the worker.