public void Stop()
        {
            try
            {
                if (timer != null)
                {
                    timer.Stop();
                    timer.Dispose();
                    timer = null;
                }
                if (_tcpRelay != null)
                {
                    _tcpRelay.Stop();
                    _tcpRelay = null;
                }
                if (_udpRelay != null)
                {
                    _udpRelay.Stop();
                    _udpRelay = null;
                }
                if (KCPTunnelController.IsRunning)
                {
                    KCPTunnelController.Stop();
                }

                TrafficStatistics.Save(_trafficStatistics);
            }
            catch (Exception e)
            {
                Logging.LogUsefulException(e);
            }
        }
        private void Stop()
        {
            if (relay != null)
            {
                relay.Stop();
                relay = null;
            }

            TypeComboBox.Enabled        = true;
            LeftAddressTextBox.ReadOnly = false;
            RightTextBox.ReadOnly       = false;
            StartButton.Enabled         = true;
            StopButton.Enabled          = false;

            AppendLog($"Stop\n");
        }