tcp socket disconnect

To clarity this, when reconnect is set to true, it doesn't report disconnect up to xmpp client, but tries to reconnect instead and in case of internet being disconnected reconnect fails, so disconnect event is never raised.