[libvirt] [PATCH] Don't attempt to read from a stream if it is closed