Finish a forver begin slave sequence

Hey all, I hope you’re doing well !

I have a slave agent in my uvm testbench were i ran a slave sequence that i coded to always listen to what sequencer write to it through an anlysis port. pseudo code is s,thing like this :
task body();

forever begin

sequencer.seqr_ap_fifo.get(tr)

end
endtask body

My issue is that, when i run a test it get blocked ( because.get() i assume ). I want to know if there’s a way to finish this sequence whithout it blocking my simulation

My issue is how can finish that