Try to better implement the CloseWait state