Last time this happened was in 1349, during The Black Death, a bubonic plague pandemic.
What’s fascinating about this story is the guy with the keys.
Clearly the locking up of the church and who holds the keys in order to do that is a big thing then?
Since the seventh century, a Sunni Muslim family has held the keys of the Church. And this remains the case even today, in the hope of avoiding clashes among rival Christian sects for control over the church.