private static void WriteLastEntry() { lock (writeMutex) { write.WriteLine(lastEntry); write.Flush(); } }