Fixed state destruction, which happened befor context_t destruction, which in turn calls logger.
Speed up server stop, by setting need-exit flag for all cache threads bfore joining them one after another.
v2.24.7.8