fix subtle ssh output problem. fix SshShell thread leak bug