stream.close and emit end events
getPortNames and specify port index in text with slash