Filter network adapters to require a MAC address

This fixes a problem with configuring the IP address on the network
adapter, if Windows has multiple network adapters with the same name. We
now only use the first adapter  that actually has a MAC address
configured.

Also added output of error return values in exceptions.