Added ability to remove topics when no more subscribers exist.