Handling of SAX errors