I've found a horrible bug in the shutdown processing,but this whole thing needs tidying uphttp://jira.jboss.com/jira/browse/JBAS-5326