Free log slot memory on close, and ensure all log slots are buffered.