When one door shuts, another opens. meaning

HOME PROVERBS

opportunity

When one door shuts, another opens.

suggests that:
Someone should not loose hope when an opportunity or a favourable situation finishes, because always a new opportunity can be found .
also
When a door shuts, a window opens.