Close JAR files after reading manifest. Fixes a problem on Windows
machines where apps can't be removed/upgraded (refs #2844).