Call Plugin::__destruct() on PluginAPI::__destruct()