How can I get SB to wait until this terminate function has completed before
continuing?

My app has an "Are you sure?" dialog, which gets covered by the SB GUI
causing a "clash crash".

Sim