Agreed. It might be better to only munmap in the finalizer. Forcing a GC to munmap something is a bit awkward though.