[tor-dev] Support for clients using shutdown(SHUT_WR)