examples: fix "sine" emitting "end" event

This is the proper way to do it in streams2