This change closes the plugin via the plugin manager, which disables the plugin, as intended, but also cleans up after the plugin, preventing any further errors or issues caused by tasks scheduled by the plugin before it failed.