Flush after writing to log file.