closedir after opendir