conditional pause at the end of the cleaning scripts