Fix json parsing exit on error