fix weird hangs caused by stderr hanging open
Merge pull request #1 from twitter/dturner-hangs

fix weird hangs caused by stderr hanging open