I think the bug might be wider than this - it appears that the hub refuses to close when macOS tries to shut down, even when it hasn’t hung (I have to remember to manually close the hub, which is easy to forget given the hub window closes after a project is opened).
Mac M2 Ultra Sonoma 14.1.2