Added 'end' emit

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