- cleanup Log header file - lazy initialization of the log buffer - aggressively resize down the log buffer