Plugin lifecycle management