Base64OutputStream cannot be closed