Use context manager to autoclose fd after creating mmap