private void Form1_FormClosing(object sender, FormClosingEventArgs e) { HTTPBgWorker.CancelAsync(); }