protected static bool Open(string pipeName, bool shortRetry)
        {
            try
              {
            Close();

            Log.Warning("Attempting to open pipe '" + pipeName + "'");

            _Pipe = Pipe.Client.Open(pipeName, System.IO.FileAccess.ReadWrite, shortRetry);

            if (_Pipe == null)
            {
              return false;
            }

            Log.Information("Successfully opened pipe '" + pipeName + "'");

            return true;
              }
              catch (Exception exception)
              {
            LastException = exception;

            return false;
              }
        }
        public static void Dispose()
        {
            try
              {
            if (_Pipe == null)
            {
              return;
            }

            _Pipe.Dispose();
              }
              catch (Exception exception)
              {
            LastException = exception;
              }
              finally
              {
            _Pipe = null;
              }
        }