Chunk server: remote sync state machine: implement ssl shutdown after handshake.