Fix service cannot check and terminate existing proccess

Signed-off-by: walteryang <walteryang47@users.noreply.github.com>