Ensure that any rules get cleaned if required