Make done called on stream.end