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