Taming the Terminator: Law, ethics and artificial intelligence