If something becomes self-aware, it can't be assumed that it will like us. If we come up with rules, laws, protocols, no way everyone will follow them. I expect it's just a matter of time.
https://www.livescience.com/48972-stephen-hawking-artificial-intelligence-threat.html