If the connection to redis fails, stop trying to send data to redis.