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