The script attached to this event occurs when the store a PC is currently using is closed. Perhaps use in a multiplayer enviroment to clean up gross amounts of sold items, or change the stock.
When a store in use by a PC is closed.
GetLastClosedBy() does now return the last PC to close the store.
By default no script is attached to this event. Note: The lexicon previous had this under "OnCloseStore". It is actually meant to be "OnStoreClosed".
GetLastClosedBy() does now return the last PC to close the store, fixed in 1.62. OnStoreClosed scripts now function properly when loaded from saved games, in the 1.64 patch.