Sample cleanup.