When one door closes in, right on your face, just back up a little bit. Then, perhaps, back up a little further.
In that way, you’ll be able to see a broader view of what’s around you. Another door might be open on the other side but easy to miss because you’re probably too invested in what you could have had.