raise exception when libvmmapi returns error