Log exceptions.
Working on AST