public void dispose() {
    if (!running) {
      return;
    }
    running = false;
    if (gcThread != null) {
      gcThread.interrupt();
    }
    executionPool.shutdown();
  }
Get last execution info

@param terminalId - id of terminal window
@return last session info
amoro-ams/src/main/java/org/apache/amoro/server/terminal/TerminalManager.java