Terminate on EOF.