brought back AttributeError when cleaning UPnP mappings during shutdown.