cleanup fd