72617cecfc
hermes profile delete calls hermes_state_registry.close_all_under(profile_dir) before rmtree, which force-closes the shared handle goals.py cached for that home. A same-name recreate in the long-lived dashboard process then reused the closed object: save_goal swallowed the closed-db error and the replacement state.db was never created. Drop the cache entry once the registry has torn the handle down (it clears _shared_registry_owned at teardown) so the next call acquires a live generation for the recreated profile.