add function kill running plugin functions