'close the tracked session if the initiating connection is closing
make sure the conn in the session list matches,
as we may have had more incoming connections to the same ip during the session'

def connectionCloseHandler(self, conn):

    if ((conn.serverip in self.sessions) and (conn.addr in self.sessions[conn.serverip])):
        if self.alerts:
            self.alert('session    ended', **conn.info())
        del self.sessions[conn.serverip][conn.addr]
        if (not self.sessions[conn.serverip]):
            del self.sessions[conn.serverip]
