Don't crash on Redis connection errors

Fixes #272