fixed DiskFileSystem to use try with resources