I'm working on a Windows-only plugin that'll crash Sigil, if the click Plugin Runner window close button (X) is clicked while the plugin is running. (On my Linux machine, Sigil displays:
Error Parsing Result XML: Encountered incorrectly encoded content., but it doesn't crash.)
Steps to reproduce this issue:
1. Install and run the crash plugin.
2. Click the first option in the list box.
3. Click the Plugin Runner window close button (X).
The plugin uses the following code:
How do I need to change the code to gracefully exit the plugin, if the Plugin Runner window is closed?