protected override void OnFormClosing(FormClosingEventArgs e) { if (NetManager != null) { NetManager.stopManager(); } base.OnFormClosing(e); }