Fixed destroy method because it wasn't completely sandboxed to the plugin instance.