LSL dialogs require a timer() event to make sure listeners aren't endlessly open.
Why not implement an extra special message when a dialog is closed? Whether it's by the Ignore button or the X. What about an empty message, is that an option? As buttons must have at least 1 character.