How to end uvm simulation in a precise way

As question mentioned,when we had finished all sequence,wo do not want to end stimulation right away,we desired to wait dut had finished transaction transition and then scoreboard had compared transaction ,at last end simulation,how shouod I do

In reply to @ltfld:

The UVM Cookbook has a section on end-of-test and how components can delay a phase from finishing.

If the components don’t know that there are outstanding transactions, you can use set_drain_time() to extend a phase.