Only destroy interfaces that are actually present.

It can be that any type (bridges, taps, vlans) are left unconfigured.
Find out what is effectively present, and only iterate over these.