The end of file appears as an error message: Stream Read Error. Currently streams don't have a way to cleanly exit.