-code cleanup after the run