make sure references to channels get deleted.