[libvirt] [PATCH v3 2/5] tools: console: cleanup console on errors in main thread