handle redis EOF in case redis-server has been configured with
keepalive timeouts.