Fixed return values in run_client()