clearSubscriptions method to clear topic subscriptions