Tweak not closing file stream