code: @Override
    public void shutdown(ShutdownModeAmp mode)
    {
      // jamp/3210
      //getReadMailbox().close();
  
      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());
    }
docs: Called when the link is closing.