Update logging
Fix bug where archives were not closed after files extracted
Fix bug where archives may be downloaded multiple times
Clean up properly after proxy detection