Wiktionary
put out of one's misery
vb. 1 (context transitive idiomatic informal English) To submit (a person or animal) to euthanasi
2 (context transitive idiomatic informal figuratively English) To end or destroy something for the good of the individuals involved in it.