add protection around redis errors