Fix crashes after failing to connect to redis server