'Handle stream closure due to all data transmitted.
Raise xmpppy event specifying successfull data receive.'

def StreamCloseHandler(self, conn, stanza):

    sid = stanza.getTagAttr('close', 'sid')
    self.DEBUG(('StreamCloseHandler    called    sid->%s' % sid), 'info')
    if (sid in self._streams.keys()):
        conn.send(stanza.buildReply('result'))
        conn.Event(self.DBG_LINE, 'SUCCESSFULL    RECEIVE', self._streams[sid])
        del self._streams[sid]
    else:
        conn.send(Error(stanza, ERR_ITEM_NOT_FOUND))
