Cleanup sharing protocol.