The Idiomatic
“When one door closes, another door shouldn't count your chickens before they are hatched.”