public boolean isConnected() { return terminalConnection != null && terminalConnection.isConnected(); }