void ShutdownPipedStream()
{
NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
try
{
pipedStream.Close();
pipedStream.Dispose();
pipedStream = null;
}
catch (System.Exception ex)
{
logEx.Error(ex.ToString());
}
}