ucode: fix an issue in exception handling improvement for ubus/uloop