Close the palette-based dialog, i.e. modeless dialogue.

Call:

ts_dialog("iDialogDescr, "SendCloseRequest");