Properly remove the disposed shared state on stop.