fixed bug where S_LAST_ACK would never change to closed