        }

        public void Dispose()
        {
            _exit = true;
            while (_server != null)
                Thread.Sleep(10);
            // Make sure we kill the waiting threads so the app can quit
            _activeThreads.ForEach(x => x.Abort());
        }
    }
}
