This function removes a remote proxy. When a task dies, all remote proxies attached to it will automatically be detached.
In case of error, the following errnos are possible:
EINVAL Invalid proxy.
EPERM Proxy does not belong to task specified.
ESRCH Proxy does not exist.