global close implemented