Cleanup pubsub interface.