Discard the rest of the line when an error is encountered in the repl.