memoized was causing an exception when __del__ method was called on the Redis object - handled that error