Added 'end' emit

Non-breaking

Prior to this, 'end' events were not firing on the pipe.