protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { if (_settingsForm != null) _settingsForm.Close(); if (_listener != null) _listener.Stop(); base.OnClosing(e); }