[libvirt] [PATCH] Unregister event callback if a fatal error occurs during dispatch