fixes #8356 - refactor reset method for libvirt