There is no inherent unhappiness in endings. Our unhappiness at the discontinuance of things we love is due to our attachment to those things. Attachment brings pain, detachment brings peace and peace brings joy.
Endings and beginnings are connected. It is not possible to have one without the other. This is one of the greatest beauties of the physical existence.