Pull request description:
Currently, `connect_nodes` will return silently when the connection is disconnected while connecting. This is confusing, so fix it.
Can be tested by reverting the signet test change and observing the failure when running the test.
Backport of [[https://github.com/bitcoin/bitcoin/pull/25443 | core#25443]]
Depends on D17529