Close file channel after goroutines finish