Unbind any previous event handlers.

Because we're re-using the same dialog (allowing per-session settings to carry over from one transition dialog to the next), all previously existing event handlers should be removed.