I have a WinForm that I create that shows a prompt with a button. This is a custom WinForm view, as a message box dialog was not sufficient.
I have a background work
Handle the FormClosing event of the form to be notified when the form is closing, so you can perform any cleanup.