class library: patterns: make cleanup optional in EmbedOnce stream