@Override public void shutdown(ShutdownModeAmp mode){
  for (int i=_serviceCloseList.size() - 1; i >= 0; i--) {
    ServiceRefAmp service=_serviceCloseList.get(i);
    service.shutdown(mode);
  }
  for (  GatewayResultStream result : _gatewayResultMap.values()) {
    result.cancel();
  }
  _serviceRefOut.close(Result.ignore());
}

@ Override public void shutdown ( ShutdownModeAmp mode ) { for ( int i = _serviceCloseList . size ( ) - 1 ; i >= 0 ; i -- ) { ServiceRefAmp service = _serviceCloseList . get ( i ) ; service . shutdown ( mode ) ; } for ( GatewayResultStream result : _gatewayResultMap . values ( ) ) { result . cancel ( ) ; } _serviceRefOut . close ( Result . ignore ( ) ) ; }
called when the link is closing .
