Fix CHARMM coordinate file parsers to make sure file handles get closed.