Pykat should not catch parse errors and exit
This line catches parsing errors and exits. It should be possible for tools to handle the parsing exception.
Ideally components would throw a special parse exception and there would be no try/except to catch these in the parser at all.