public void stop()
{
// Clean up the handlers
MBeanServer s = Registry.getRegistry(null,null).getMBeanServer();
for( int i=0; i<wEnv.getHandlerCount(); i++ ) {
JkHandler handler = wEnv.getHandler(i);
if(handler != null) {
String handlerName = handler.getName();
try {
handler.destroy();
} catch( IOException ex) {
log.error("Error stopping " + handlerName, ex);
}
if(domain != null) {
try {