Restored finalCleanup.