proxy_client: handle hand shake client close