XMPPBOSHConnection + Disconnect event

Hi Friends,

I’m using XMPPBOSHConnection object in my chat client for server connectivity and i want to trap the network disconnect event (say when the user is logged in and in mid session the LAN disconnects). Currently DisconnectionEvent.DISCONNECT event does not respond to my situation. It registers an event when you properly log out of the chat client.

Can someone help me?