Close all open files when unmapping.