Implemented duv_handle_close