This function releases a proxy from its associated task. When a task dies all proxies attached to it are automatically removed.
In case of error, the following errnos are possible:
EPERM This task is not the owner of the proxy.
ESRCH The proxy does not exist.