catch IO exceptions from broken downstream pipe
added test for pipe-cutoff behavior
Merge pull request #19 from jeffakolb/master

a title