Let us learn to fully reap the benefits that the Internet of things, some rudimentary artificial intelligence and smartly evolving robotic technologies bring to us. When the time comes we will ourselves find the solution to any potential threat in the future.
We always have. The industrial revolution, when it came in the eighteenth century, evoked similar dread and trepidation, but things worked out more or less fine at the end of it. There were really serious social and economic consequences of that revolution which had to be overcome before things settled down.