Return io.EOF when session is closed.

I'm not sure if the semantics are reliable, but this allows accepters to exit gracefully when a connection is closed.