In some cases it is possible to have an error during extraction (incorrect archive file, IO issues, ...), but current code never closes the file/inputstream, leading to some potential issues (especially on windows where the file can be locked).
This PR ensures the file/streams are always closed in a finally block.
In some cases it is possible to have an error during extraction (incorrect archive file, IO issues, ...), but current code never closes the file/inputstream, leading to some potential issues (especially on windows where the file can be locked).
This PR ensures the file/streams are always closed in a finally block.