made hufftree delete files when something goes wrong