TransactionalOutputStream implementation