I think it would be nice if you can prompt the user when closing a dialog.. Like:
on *:dialog:name:close:*:{
if ($input(Are you sure you want to close this dialog?,yq,Close) == $true) { commands }
}
So if the $input returns $null the dialog isn`t closed.. Like /exit
If you propt the user if he wants to exit or not and he presses no, nothing happens...