Prevent attempting to load the Python plugin after it failed the 1st time as it is impossible to restore the runtime state completely (reason why the plugin is not normally unloaded). It is either this, or avoid unloading the partly loaded plugin and signal the failure otherwise, but that seems (even) less clean.