Corrects `destroy` of plugins