void worker_Kill(object sender, EventArgs e) { if (worker.IsBusy) { MessageBox.Show("exception: "); worker.CancelAsync(); } }