There are no happy endings in real life. A person's story doesn't suddenly end when something good happens. If you get married, that's not a happy ending. It's the happy beginning of your next chapter together. Ultimately every life is a tragedy that ends in death and grief. Grief is the price we pay for love. But along the way, there are some precious moments of happiness. And it's those fleeting moments that make life worth living.
Take this idea that you have that you must be attached to things and apply to it the reality that you came here with nothing, and when you leave this great Earth you'll be leaving with nothing.