Also, close the file handle.

Apparently once the mmap array is created, it is okay to close the file handle.