Introduce an error loggint thread factory and start using it.