use restart_client() to replace restart code in checkResult