[minor/bug] fix agent service stop issue