Is there a specific way to stop the test/simulation in case condition failure?

In reply to trymybest:

I I use +UVM_MAX_QUIT_COUNT=1 it ends the simulation in case of uvm_error (even if I don’t have uvm_fatal)