Hope this won't repeat the Terminator movie.
Sure it will not. Those things you see in Terminator is really just for movies. We can always put a kill switch on those devices, even NASA's very expensive rocket launchers have them

Don't worry much about that aspect, robots will never be smarter than us period.