Corrected close statement