possible race in close, cleanup