Elon seems to take this problem seriously because he has donated a lot of money to AI security research, I believe $10 million.
If anybody is interested in Elon's views on AI, I recommend his interview at MIT in Oct 2014. Search for Elon Musk, MIT Centennial Symposium.