Common cleanup.