Fix a try/catch bug

Now try/catch will emit events based on err type, if it is a SyntaxError
than emit the original line, else emit an error