Mar27closedir

fd leak found by valgrind; opendir without corresponding closedir; add closedir