The OnClose event is fired when a creature closes either a placeable with inventory (a container) or a door.