code: private void shutdown(final Map<String, Object> respMap) {
      try {
        logger.warn("Shutting down executor...");
  
        // Set the executor to inactive. Will receive no new flows.
        setActiveInternal(false);
        this.application.shutdown();
        respMap.put(ConnectorParams.STATUS_PARAM, ConnectorParams.RESPONSE_SUCCESS);
      } catch (final Exception e) {
        logger.error(e.getMessage(), e);
        respMap.put(ConnectorParams.RESPONSE_ERROR, e.getMessage());
      }
    }
docs: Prepare the executor for shutdown.
  
  @param respMap json response object