change the content of Expect scripts again, to ensure the ssh processes are terminated by themselves.