protected void Cleanup()
 {
     try
     {
         _stream?.Dispose();
         _client?.Close();
     }
     catch (Exception ex)
     {
         base.ErrorHandler.Error($"{nameof(FluentdAppender)} Cleanup - {ex.Message}");
     }
     finally
     {
         _stream  = null;
         _client  = null;
         _emitter = null;
     }
 }
 private void ConnectClient()
 {
     _client.Connect(Host, Port);
     _stream  = _client.GetStream();
     _emitter = new FluentdEmitter(_stream);
 }