Some doors have to close in our lives so that others can open
I believe that everything happens for a reason, and often those things can seem terrible at the time, but with hindsight you start to see where they fit into place in the great jigsaw that is your life. I remember when my first real love dumped me, unceremoniously, and my heart was broken. I didn't see it coming, I didn't know what to do and it really did seem like the end of my world there and then. Several years on from that and I am married to the most amazing man I've ever met. Had I not been dumped at that particular time, by that particular person, and it had that particular impact on me, who can say that the rest of my life would have transpired the same way?
I know that probably isn't much of a balm to the situation at the moment, but hopefully it will ring true when you look back one day at this event and see where it has led you - places you might well have not thought possible before.