Check returns for append_all_to_write_buffer().