Create share after rshare as a unrecognized ip will end up with a orphaned share.
Add generic clean exit context manager.
replicashare api should allow lookup by ids.
Add share before rshare.