Added partition refresh before and after cleaning