Fix removing closed sessions from tracking list