The return of the plugin

changed to `Plugin** plugin`, deletes `*plugin` and nulls it, called as `ref` from C#.