correct plugins_script_terminate() in plugin.c
add log, ls_plugin_system