Catch and log all exceptions occuring during parsing.