On a closer look, the code has a bug: `create_dialog`should return `sequence`. That would work if `Wizard.CloseDialog` were in an `ensure` clause but not here.