libvirt: Adjust virsh.is_dead to resolve a timing issue

Commit message describes changes, but essentially I was getting some unpredictable failures in 'change_media' which does a shutdown followed by a startup.  The startup would fail indicating the guest was already started.  The logging would show the shutdown output "out of order" or mixed in with startup messages.