First clear io then iobuf.