private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (push != null) { push.Disconnect(); } Application.Exit(); }