Do we want to do this before the redis entity is stopped?