Improve logging of open sockets in stream.js