public void Close() { pcap.Close(); #region Dump log while (tracker.Count > 0) { FlowStats stats = tracker.Tail; Dump(stats); tracker.Remove(stats); } #endregion writer.Close(); }