Fix error propagation from userland-proxy

I've taken care about this issue(original PR: #7927), because @erikh is pretty busy with linksv2.

Fixes #7935
What about closing these pipes after you are done?