@Override
protected void doStop() throws Exception
{
oort.deobserveChannel(broadcastChannelName);
BayeuxServer bayeuxServer = oort.getBayeuxServer();
ServerChannel channel = bayeuxServer.getChannel(resultChannelName);
if (channel != null)
channel.removeListener(this);
channel = bayeuxServer.getChannel(broadcastChannelName);
if (channel != null)
channel.removeListener(this);
channel = bayeuxServer.getChannel(forwardChannelName);
if (channel != null)
channel.removeListener(this);
session.disconnect();
if (logger.isDebugEnabled())
logger.debug("Stopped {}", this);