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
I still wish there was a simpler way to do this instead of sending 0 and 1 to stdout/stderr