End process before cleaning