Fixed bug causing chunked files to never close during saving process