It was told again and again to me that it is all part of a pattern. If I am here where I am it is only because I am supposed to be. This whole sequence is happening because either it is meant to be or it is already planned. So there is no need to be upset.
No matter, how difficult the things turn out to be at different phases of life, what one need to figure out is if this is the part of a bigger picture and the result of chronological events from past on the basis of which one should be able to find out next major happening.
Reminds me one of the dialogues –
Hamari filmon ki tarah hamari zindagi mein bhi end mein sab theek ho jata hai aur agar theek na ho to vo end nahi hai, Picture abhi baki hai mere dost!
And yes, it happened to be a happy ending of one phase and a hopeful beginning of next one.