munmap and pre closing files during hashing