[Libvirt-cim] [PATCH] Check to see if stream is non-null before closing