Smack: close file, discard old hashmap.

FIXME: this still needs to properly drop all the allocated
memory from the old hashmap. But this works.