[libvirt] [PATCH Java] Cleanup close/free handling