DeployableContainer container = context.get(DeployableContainer.class);
Validate.stateNotNull(container, "No " + DeployableContainer.class.getName() + " found in context");
context.fire(new BeforeStop());
container.stop(context);
context.fire(new AfterStop());
}