- Fixed an issue where it would close the file twice on truncation