handle redis connection error causing segfault