} catch (IOException | URISyntaxException e) {
HMCLog.err("Failed to add launcher files.", e);
flag = false;
break;
}
<BUG>engine.closeFile();
if (flag) {</BUG>
including = true;
if (!modpack.delete())
HMCLog.warn("Failed to delete modpack.zip.temp, maybe the file is in using.");

} catch (IOException | URISyntaxException e) {
HMCLog.err("Failed to add launcher files.", e);
flag = false;
break;
}
}
if (flag) {
including = true;
if (!modpack.delete())
HMCLog.warn("Failed to delete modpack.zip.temp, maybe the file is in using.");
