fix a bug when killall doesn't have enough time to kill process on remote server