Reset USRP Session?

Hi all,

I am developing an interactive spectrum analyzer using the
usrp_spectrum_sense.py as the background code.

Is there any way to reset the connection to the USRP or “stop” a
particular scan and restart with new options?

(Newbie to python btw).

thanks