drain the error stream to avoid deak lock in shell process
Merge pull request #424 from lyogavin/master

Drain error stream periodically to avoid dead lock between ShellBolt and shell process