add a callback for handling lost ubus connections