catch parse failure; exit with error