Add StopAtEOF to stop tailing when the end of the file is reached

This is useful when we know that the writer has stopped, and want to ensure that we read all lines before stopping.