fix goagent always be killed