- added catching and logging parse/syntax errors as well.