Protect logger from crashing