Emit a 'close' event instead of 'end'

When emitting an 'end' event on the Duplex stream you can't read
it anymore, even when it's a halfOpen stream.