Stopping the production line is almost never the first choice. Continuous production takes priority. There are second-order metrics that can be applied on top of the individual rejects (N in a row, N out of M rate, etc) and THOSE metrics can be used to determine if production should be shut down.
Source: Have worked in industrial process control (specifically automated QA inspection equipment) for 20 years.