diff --git a/src/main/java/io/elkrem/koynsync/Main.java b/src/main/java/io/elkrem/koynsync/Main.java index b46aa45..4749cae 100644 --- a/src/main/java/io/elkrem/koynsync/Main.java +++ b/src/main/java/io/elkrem/koynsync/Main.java @@ -205,6 +205,7 @@ public static void main(String[] args) { try { finalOut.write(header); } catch (IOException e) { + bar.close(); System.err.println("Couldn't write to local headers file, exiting!"); releaseResources(); System.exit(1);