removed call to ssh.terminate()