Add LogWriter to fix async messages