Installed an exception handler in the worker code.