Cleaning of wafer as interim step