Remove listeners when connection closes?

When an XMPPConnection closes, do all the listeners get released automatically or do they have to be explicitly removed?

,Chris