Fix to catch ldap_delete error.