Probably small consolation, but the poor dog probably died very happy to think that he had found a new owner who loved him. Upsetting for you, but the best ending he could have wished for. When you are ready, have another go.
Definitely not an FML. You should feel your life is blessed.