Now exception from IOFactory::writeDatafield and below are redirected to the main thread.
IOFactory::writeDatafield