Improve client_connect in instance_com