remove plugin_setting and plugin_state in task_init/task_destroy