`close` is still backward; `close` is given to you, and you don't get to say which steps it runs. Instead do something like you did above: "When the TCP connection has been closed cleanly ... call `close` ... also set `readyState`..."