fix(plugins): ruby 1.9.1p0 crashes when stdin is closed