use another context manager

i did not find this one in the first round, but the file should be closed aswell...