proxy_client: add error handling and retry in controlling_process