added partial close