Fixing scoping issue.
Only cleanup files if load was successful; else leave them around for debugging.