Make sure we don't log after the log is closed.