cleanup pthinned