Cleanup in standalone examples