This was previously implicitly done by a settings reload on shutdown, but this has since been removed, and we need to clear the connections explicitly.