[MSAFD] Don't update shared state on close if we still have active references to...