[TxMt] tm_dialog: How to catch the window's close button?