Initializes the publisher API.
The caller of the publisher API may have to perform activities that need to occur prior to the shutdown of the publisher API. The publisher API invokes this callback function to notify the caller that a request to shut down has been received. The caller is responsible for performing whatever actions need to be taken and then invoking the publisher's shutdown API.