private void Form1_FormClosing(object sender, FormClosingEventArgs e) { ConnectionWorker.CancelAsync(); game.connection.Disconnect(); }