code: @Override
  	public void shutdown() throws PluginException {
  		if (storage != null) {
  			try {
  				storage.shutdown();
  			} catch (PluginException pe) {
  				log.error("Failed to shutdown storage: {}", pe.getMessage());
  				throw pe;
  			}
  		}
  		if (indexer != null) {
  			try {
  				indexer.shutdown();
  			} catch (PluginException pe) {
  				log.error("Failed to shutdown indexer: {}", pe.getMessage());
  				throw pe;
  			}
  		}
  	}
docs: Shutdown method
  
  @throws PluginException
  if any errors occur