Why is it elle and not il?
It is possible if the object "closed" is a feminine noun, like "bibliothèque" (library).