/// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     if (_networkConnection != null)
     {
         _networkConnection.Close();
     }
 }
        /// <summary>
        ///
        /// </summary>
        public void Dispose()
        {
            if (!string.IsNullOrEmpty(_key))
            {
                RemoveLogger(_key);
            }

            _client.Close();
        }