builder/vmware: only unregister if registration success