close request stream after writing the body to it