I’m shattered emotionally....

I hear you, but you can't save em all

You tried to undo what the previous owners did and were unsuccessful
The dog had a peaceful home, for however long he was with you and that too, is worth something
That is eXACTLY what my wife says