Added redis error checking