clean up unclosed annotations
clean up out of bounds annotations (open and close them)