SocketPort now detects end of stream, and closes the port. (Also ends iteration.)
Updated readme.