Now, since no real virsh call will be made, try...finally will not be necessary.  There will also be zero danger of messing up test system, or even requiring virsh executable to exist :)