Add try/catch to tokenizer.