The engine doesn't delete empty groups which had their last unit removed via a command.
If the last unit has been killed the group is deleted instead.
This proves to be a major issue since the creation of new units will be impossible after hitting the max number of groups per side.