protected override void OnClosed(EventArgs e) { _callback = null; if (_clientId > 0) { MicroconeAPI.CloseClientConnection(_clientId); } MicroconeAPI.UnregisterPnpNotification(); base.OnClosed(e); System.Environment.Exit(0); }