Added cleanup for plugins for onDestroy()