Pubsub errors causing 'unavailable' presence

I am new to Smack, and have been having a hell of a time trying to use su-smack to implement some pubsub functionality. Although the pubsub extensions are not part of smack, I am wondering why;

  1. When I try to publish a message and an error is returned, it does not get to my listener (it can be seen in the raw packets)

  2. When this error occurs, Smack is sending a presence message of ‘unavailable’, which is then followed by automatically reauthenticating, retrieving the roster and posting another presence message of ‘available’.

This seems like an error in Smack to me.