Added error checking when reading from redis.