minor cleanup

be consistant in closing fd's