initialized send/recv buffers in accept/connect so sockets can be reused

redone the simultaneous closing ceremony to match the protocol
specification better