Fixed TMParser issue.
Added extra exception handling functionality in LRParser.