You weren't being selfish - you were still putting him in front. When you realized that it wasn't going to work, you gave him your final gift of love. There is no fault with that. You loved him, he loved you. I am so very sorry that you are feeling guilt, too. May we all act out of love. May you find peace.