Public Sub TermExtension()
TermExtension is called when the Manager quits, and also when the user chooses to remove your plug-in with the Add/Remove Plug-ins dialog. It should perform any shutdown operations. As with InitExtension, you must use your own error-handling routines.
Public Sub TermExtension() On Error Resume Next Set EF = Nothing ' (EF is the SGM's exported object) End Function