support end of child_process stream
ignore exit if not child_process
Merge pull request #2 from phated/master

support end of child_process stream