Registered an event that unloads the plugin when Obsidian is closed
The registered event might not always work (see this Obsidian forum post, some OS might kill the Obsidian process when the users wants to close it, or the user themselves might want to kill Obsidian, anyway this is some best-effort cleanup.
Change Log
The registered event might not always work (see this Obsidian forum post, some OS might kill the Obsidian process when the users wants to close it, or the user themselves might want to kill Obsidian, anyway this is some best-effort cleanup.