Log errors while initializing the worker to aid debugging.