add timeout when fetching json file + simpler cluster shutdown