better exception handling for getMAC()