if ((flags & ClientChannel.TIMEOUT) != 0) {
closeAndRemoveFromPool();
throw new SshException("Timeout while waiting for SSH task to complete. Timeout was " + timeout);
}
flags = sshChannel.waitFor(ClientChannel.EXIT_STATUS, 30000);
if ((flags & ClientChannel.TIMEOUT) != 0) {
closeAndRemoveFromPool();
throw new SshException("Timeout while waiting for exit code. Timeout was " + timeout);
}