As noted in the discussion thread, you aren't actually storing a reference to the plugin class anywhere.