exit on bad json