fix the ubus hotplug add/remove interface to properly clean up devices