Cleanup scope (Trove, Janitor, Maid)
An object that collects everything created for one lifetime (connections, instances, table entries, threads) and cleans it all up in one call when that lifetime ends.
Think of it as A hotel room's checkout list: everything the guest started is written down, and checkout works through the list.
Add an item when you create it; Clean disconnects, destroys or calls each one. Register cleanup once where the lifetime starts, never on every update, or the scope itself grows. RbxUtil's Trove, Janitor and Nevermore's Maid are common libraries; the pattern fits in about 40 lines.
Official reference: github.com