Better tag error/exception handling