Closing flow fd