'Received Msg with failure - our request failed
Delete the session.'

def _handle_event_failure(self, msg):

    seqnr = msg['failure']['seqnr']
    callback = self.sessions[seqnr]['callback']
    callback(from_jid=msg['from'], result='failure', nodeId=msg['failure']['error']['nodeId'], timestamp=msg['failure']['error']['timestamp'], error_msg=msg['failure']['error']['text'])
    del self.sessions[seqnr]
