Fix cancellation.
Use the same handshake on startup when running as server.