Don't close OutputStream after writing metadata so we can reuse it
Manually close OutputStream after writing XML metadata
Add XML metadata to exported zip archive