Catch exceptions on connecting to redis