diff --git a/main.go b/main.go
index 664e4c7..97c6f6b 100644
--- a/main.go
+++ b/main.go
@@ -437,10 +437,10 @@ func DownloadAndProcessEpub(jnovel jnc.Api, serie jnc.SerieAugmented, volume jnc
 					fmt.Println(err)
 				}
 
-				epub.Close()
 				newZip.Close()
 				newZipFile.Close()
 			}
+			epub.Close()
 			os.Remove(file)
 		}
 	case "novel":