@Override
protected Object doExecute() throws Exception {
// SshAction uses import org.apache.sshd.common.util.NoCloseInputStream and NoCloseOutputStream, which I don't seem
// to have access to. But if closing this shell seems to close the in and out stream, that's probably why...
Interpreter shell = new bsh.Interpreter(new InputStreamReader(System.in), new PrintStream(System.out), new PrintStream(System.out), true);
shell.run();
return null;
}
@Override