Cleanup load function and report which file failed