updated ACKing and sessions close logic