When one door closes, a window opens.
And sometimes, the window is what you need.
So don't get too troubled by the closing of the door. You might like what you see inside the window.
Give yourself a chance to move on. And prepare yourself for the next opportunity that will come along.