I have developed a plugin based on webengine_demo_plugin.zip.
This plugin,
noosfere_util, allows to manually select the metadata from one of the editions of the book in noosfere site.
To do that I open a web browser in a separate process, go to the page of the book, find the reference. Noosfere_util then sends the reference to main calibre using temporary files. I synchronize both main calibre and noosfere_util via temporary files. Later I use noosfere DB metadata plugin to upload the metadata I want.
Everything seems to work ok... provided I suppress any access to main calibre while noosfere_util gui is active. If I press the closing X of the main calibre gui, before I terminate the noosfere_util, then I get "The main calibre program" process still running and NO gui anymore to stop it... If I run calibre in debug mode, and kill main calibre before noosfere_util, "The main calibre program" process is gone while the debug process console is hidden somewhere...
If I try to restart calibre, it complains about not being able to contact calibre, please restart calibre...
I guess (I hope) there is a call to to an abort procedure in every plugin, or a signal is emitted when main calibre is shutdown... But I cannot find it (I may be blind

)
Thank in advance for any hint.