Ensuring that the process exits if the checks fail