fix some warning
fix goagent always be killed
Merge pull request #99 from ChandleWEi/master

clear some warning