Pandora shut the container after its contents escaped in Hesiod’s story. Works and Days describes the evils flying out when she lifts the lid, followed by her closing the vessel before everything inside can leave.
The detail is important because the myth’s ending is not simply that Pandora opens a box and walks away. Her closing action explains why the contents are no longer contained while something remains within. Later interpretations focus heavily on the identity of that remaining occupant and on whether it represents comfort, expectation, or hope.
Epimetheus is present as Pandora’s companion, but Hesiod’s account assigns the opening and closing actions to Pandora. Zeus is responsible for the larger divine plan, while Prometheus is connected to the stolen fire that prompted the punishment. These distinct roles help prevent later retellings from blending the characters together.