stream: make socket hang up match node

Signed-off-by: Fedor Indutny <fedor@indutny.com>