Fix bug when Redis connections fail