Make sure the Redis connection is closed