You should not delete the file immediately if loading was successful. Fixed in the follow-up commit.