fix stream after node exit