revert new-style stream.end() implementation