And while they went away (aperchomenōn de autōn). Present middle participle, genitive absolute, while they were going away, descriptive linear action. Picture of their inevitable folly.
Was shut (ekleisthē). Effective aorist passive indicative, shut to stay shut.