Unify scanner and parser error handling
Print errors again
Check that closing tags are valid