Adding better error handling when dealing with virsh