Passing the dialog to be destroyed in the autoCloseDialog option is true