Question: where a door closes another opens?
Answer: one door closes and another one opens. said to mean that if one thing you do fails, you will soon have an opportunity to try to succeed at something else. This expression is often used to encourage someone to keep trying after they have had a disappointment or failure.