Actually atm the hive files will always get deleted. If the hash won't match it will be deleted on line 167 and if the hash matches and it can be processed then the hive will be deleted in the end of hive_parser function on line 210. This way after successful run there's only txt file in the loot directory.

Currently the only problem is using that session.fs.file.download_file since it seems to hang quite often but I guess there's not much that can be done about that.