When a user chooses the OK or Cancel button, you need to unload the dialog. Like start_dialog, unload_dialog is another simple function.
(unload_dialog dcl_id)