suppress error message when stdout closed prematurly
Merge pull request #15 from teharrison/master

suppress error message when stdout closed prematurly