Make sure MolIO doesn't close files it didn't open

Also add a test for `MolIO.guess_mol_format`.