Set foundation of error handling for the worker.