The ILogPlugin::TerminateLog method closes the logging module.
virtual HRESULT STDMETHODCALLTYPE TerminateLog( VOID );