[tor-commits] [tor/master] Move stream-closing out of rewrite code