fixes #144

Seems like we are closing the reader too eagerly. We can delay closing
it until after we've processed the client's requests.

@avsm I'm not sure why the old behavior was there, perhaps as an optimization? I will merge this because we're blocking @ericbmerritt .We can figure out what we actually want to do after.