Then ultimately I'd attempt to destroy the machine, as well as kill those who were used as resources. Even if killing them is only for their own sake. I don't think there's anything wrong with taking necessary action for continued survival, especially since it sounds like you're doing the world a favor.
all good ~ ♥