In the story of Lot in Sodom...the angel's shut the door (close of probation) against the wicked Sodomites....
But the men put forth their hand,
and pulled Lot into the house to them,
and shut to the door.
Genesis 19:10
Followed by a Punishment (Plague)....
And they smote the men that were at the door of the house with blindness,
both small and great:
Genesis 19:11
Followed by a short time for deliverance (from the "city"/spiritual Babylon)....
And while he lingered, the men laid hold upon his hand, and upon the hand of his wife, and upon the hand of his two daughters; the LORD being merciful unto him: and they brought him forth, and set him without the city.
Genesis 19:16
Followed by the END of the city (spiritual Babylon)....
Then the LORD rained upon Sodom and upon Gomorrah brimstone
and fire from the LORD out of heaven;
Genesis 19:24