closing request stream and handling 2nd error case