use restart_client() to replace restart code in checkResult

the restart process code from checkResult() is the same as the function restart_client(),
so use it to replace it