Clear the atend marker when we open a new input stream.