Add onWizardPanelClosing method in addition to onWizardFinshed method.
onWizardPanelClosing gets called when "Close" button is clicked on the
last page of the wizard. onWizardFinished gets called when the last page
of the Wizard gets displayed.