Cleanup of the memmap-based approach.