Remove inactivity message
Fix writeToStream writing to stream after closing it

writeToStream closes the output stream when the ffmpeg process terminates, but 'data' events on the process stdout stream can still happen after that.

This patch fixes this problem by closing the stream on the stdout 'end' event.
Merge pull request #185 from njoyard/fix-writeToStream

Fix writeToStream writing to stream after closing it
Merge pull request #184 from bencevans/patch-1

Remove inactivity message
Merge remote-tracking branch 'schaermu/master'