Define a decorator for libvirt handlers, those can be used only when the connection to the libvirt is active