Tighten up test.  Add close protocol.  Handle connection closing as not
an error condition.