automatically connect to different node if cant connect to first one

Connect to a different node, if the previous node failed to connect