When your technology starts threatening sentience, it’s time to be afraid – or pull the plug