There is a complementary function quit-interface which calls the interface's confirm-destroy-function to confirm that the destroy should be done, and it is advisable to always use this unless you want to make sure that the interface's confirm-destroy-function is ignored.
must only be called in the process of
. Menu callbacks on
will be called in that process, but otherwise you probably need to use execute-with-interface or apply-in-pane-process.
CAPI Reference Manual - 15 Dec 2011