There is a Doctor Who episode where the robots do exactly that and say that it is a kindness.
Isn't that pretty much the theme of every Dr. Who episode?
Daleks - Seek, Locate, Exterminate