With pets, doing what's best for them is often times the hardest thing for us to do. Sammy was lucky to have a family that supported and loved him when he was in need. My heart goes out to you in your loss.
So sorry you are going through this. But also grateful Sammy spent the rest of his life with you; and no longer had to worry about the food, shelter, and love that was missing in his life.