code: private void stopRecording(String line, DispatchCallback callback) {
      try {
        sqlLine.getRecordOutputFile().close();
      } catch (Exception e) {
        sqlLine.handleException(e);
      }
  
      sqlLine.output(sqlLine.loc("record-closed", sqlLine.getRecordOutputFile()));
      sqlLine.setRecordOutputFile(null);
      callback.setToSuccess();
    }
docs: Stop writing output to the record file.