Ensure all tags are closed

This is for people who are too lazy to type `q. at the end of their
document. You can thank me later for writing 22 characters of code
because you are too lazy to write 3 characters