[apiserver] fixed close behavior;