XMPPStopListenerIfc vs XMPPPresenceUpdateProcessorIfc

We've a custom component that needs presence information. Earlier we were using just XMPPPresenceUpdateProcessorIfc. But we noticed that in case a connection is stopped by watchdog, it only notifies those plugins that implement XMPPStopListenerIfc.

So we added this interface to our plugin as well. It solved the the issue of watch dog connection closer. And now we face another issue that in case of a normal connection closing, presence information if forwarded to both XMPPPresenceUpdateProcessorIfc and XMPPStopListenerIfc. And our component receives this information twice.