libvirt: avoiding errors at program termination

Added a workaround for avoiding to see libvirt errors
at program termination.

Change-Id: Ic476da992788d07ea29104fa1b9b3ab3dfbe7ea8
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>