Clean up event handlers in ManageStates when dialog is destroyed.