Close the write stream of the socket after writing a response

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