r24430: Convert reply_writeclose to the new API