Add exit in ddc_r