Would be better to call unshare() here. This way also the corresponding hooks are triggered which allow other apps to react on it. For example the encryption app can remove the share keys.