moved destroying of all devices into a loop
added destroy for unregistering devices through netlink