Flush current log queue contents before closing