Added missing closes