On the Asset Management Setup, there is an option to Remove Automatically Empty Work Order Packages. With this setting enabled, when you close a Work Order that belongs to a Work Order Package, if there isn't any other Work Order, the empty Work Order Package will be removed.