private void BtnExitClick(object sender, EventArgs e) { if (_xmpp != null && Xmpp.Connected) { _xmpp.Disconnect(); } Application.Exit(); }