Update `AbstractJarWriter` to ensure that streams are always closed, even if entries are not written.