Handle redis connection exception error properly

Fixes #242
Merge pull request #245 from andrew/db_failover-fix

Handle redis connection exception error properly