For cases where the OPCPackage is opened in ZipContainerDetector, then the OPCPackage is added as the OpenContainer on the TikaInputStream and is closed correctly when the stream is closed. For cases where OOXMLExtractorFactory does the open, it should likewise set it as the container so it is closed. For pure stream based creation, there is no state left to close, this only affects the case of opening the OPCPackage from a File.
(Having OOXMLExtractorFactory do the close itself feels wrong, as it might end up closing something that someone else opened, and having it track who opened it with different code paths doesn't feel right. Making the two cases behave the same feels simplest)