how to close and restart PANDA *cleanly* ?

thanks, this will surely help !
I was aware of exitFunc (note the capital F), I see now that there is an exitfunc that roughly do what I want.
I will inquire.