Cleaning in plugins