exit on json error