private FileLogWriter(string filePath) {
_filePath = filePath;
_messages = new ActionBlock<string>(new Func<string, Task>(WriteToFile));
AppDomain.CurrentDomain.ProcessExit += OnProcessExit;
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
}