Called during application termination
virtual void OnXllClose( );
This virtual function should be implemented by any class descended from CXllPushApp. The method is called only once in the lifetime of an addin, just before it is closed.
It should always call the parent class implementation (CXllPushApp::OnXllClose()).
It should clean up any resources used by the application, such as database connections and data feeds.