Fixed JSON.parse error not stopping compute loop