You definitely did the right thing. If you can't take proper care because your life situation changed, you should not force the dog to suffer. You made a decision to get a dog when you had different living conditions. You can't always control what's going on in your life, and as heartbreaking as it might be, you did the right thing. You should approach it the same as you would if your dog died. Hope this will help - Grieving a pet.