Terminates all current dialog boxes as if the user had canceled each of them
(term_dialog)
If an application is terminated while any DCL files are open, AutoCAD automatically calls term_dialog. This function is used mainly for aborting nested dialog boxes.
The term_dialog function always returns nil.