postOffice.removeBinding(sub.getName(), sub.isClustered() && postOffice.isClustered());
String counterName = TopicService.SUBSCRIPTION_MESSAGECOUNTER_PREFIX + sub.getName();
MessageCounter counter = sp.getMessageCounterManager().unregisterMessageCounter(counterName);
if (counter == null)
{
throw new IllegalStateException("Cannot find counter to remove " + counterName);
}