cleanup of pubsub