use pkill to kill agent