cleanup `stream` emission