properly compare mac addresses

* convert mac addresses to lower case before comparison
* added failed URL to exception log