filehash: Filehash should be removed after the file is closed