132133134135136137138139140141142
try { cli.close(); } finally { try { if (terminal != null) { terminal.restore(); } consoleReader.shutdown(); } catch (Exception e) { throw Throwables.propagate(e); }
129130131132133134135136137138139
client.stop(); } catch (Throwable t) { } try { if (terminal != null) { terminal.restore(); } } catch (Throwable t) { } } System.exit(0);
349350351352353354355356357358359
// Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { try { term.restore(); } catch (Exception ignore) { } } });
152153154155156157158159160161162
client.stop(); } catch (Throwable t) { } try { if (terminal != null) { terminal.restore(); } } catch (Throwable t) { } } System.exit(exitStatus);