Exit gracefully when stdout becomes invalid
Merge pull request #27 from Herringway/master

Exit gracefully when piped stdout becomes invalid