Cast entityBody to string before adding to requests. References to entityBody were preventing file streams from closing until entire foreach loop was finished.