Added sanity checks for cascading deletes.