File handlers not being closed properly
The file handlers are not being closed properly, causing resource leaks. This makes Windows block access to the files later in the program.
This makes it impossible to delete the source folder (for example temporary folder that was only created to be packed).