Close the write stream of the socket after writing a request

This closes the write stream of the socket after writing a
request. The benefit is notifying the server that we are done
writing the request and that it can begin reading and handling
our response. The server/socket usually figures this out, but
closing this is more reliable.