I think this can go away, close() should never block.