The process stops when the Scanner has errors.