Bug fix for Share Layer and Standby spinner for Feature Sharing

The Share Layer dialog was not being destroyed properly when the hide
button was pressed.
The Feature sharing Standby was displaying when the MapContext
background process was running.