When net conf addshare is interrupted, it can leave an incomplete share definition in the registry.
reason is that net conf addshare is not protected by a transaction.
Created attachment 5582 [details] Fix from master. This fixes the bug by adding a transaction around net conf addshare.
Pushed to v3-5-test. Closing out bug report. Thanks!