minor fixes for record and domain destroying