protected override void OnApplicationEnd(object sender, EventArgs e)
        {
            base.OnApplicationEnd(sender, e);

            if (_mw != null)
            {
                _mw.Dispose();
            }
        }
        public void Terminate()
        {
            if (_mw == null)
            {
                return;
            }

            _mw.Dispose();
            _mw = null;
        }