Cleanup temp files unless in debug mode