Synchronized shutdown, since the log channel needs external synchronization