Added file close and date