delete fd after using