Use xunmap instead of xdestroy