cleanup after last solution