Fixes #6.

Keep the stream alive to avoid `Error: write after end`.