[-] FO: Fix #PSCFV-9057 close output buffer before sending attachment and virtualproducts