check if can connect to redis on startup. otherwise shutdown