Remove a couple of resource warnings from not closing files