/// <summary>
        /// Free resources held by the sink.
        /// </summary>
        /// <param name="disposing">If true, called because the object is being disposed; if false,
        /// the object is being disposed from the finalizer.</param>
        protected override void Dispose(bool disposing)
        {
            _batchTimer.Dispose();
            _client.Close();

            _client     = null;
            _batchTimer = null;

            base.Dispose(disposing);
        }
 /// <summary>
 /// Free resources held by the sink.
 /// </summary>
 /// <param name="disposing">If true, called because the object is being disposed; if false,
 /// the object is being disposed from the finalizer.</param>
 protected override void Dispose(bool disposing)
 {
     _client.Close();
     base.Dispose(disposing);
 }