A. In science fiction stories, robots are generally depicted as working in the service of humanity, often escaping the control of their human masters and doing them harm.
B. In science fiction stories, robots are generally depicted as working in the service of humanity, often escaping being controlled by their human masters, which does them harm.
C. In science fiction stories, robots are generally depicted as working in the service of humanity, but they often escape the control of their human masters and do them harm.
D. In science fiction stories, robots are generally depicted as working in the service of humanity who often escape the control of their human masters, doing them harm.