Flush after logging