Fixed a subtle bug in the tcp state of CLOSE_WAIT.