private void beforeShutdown(Module module) {
		for (Plugin plugin : getSupportedPlugins(module)) {
			try {
				plugin.beforeShutdown(module);
			}
			catch (IllegalStateException e) {
				logger.warn("Failed to invoke plugin {} during shutdown: {}",
						plugin.getClass().getSimpleName(), e.getMessage());
				logger.debug("Full stack trace", e);
			}
		}
	}
Apply shutdown lifecycle plugins for the given module.

@param module module to shutdown
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/ModuleDeployer.java