Cleaning during device manufacture