Opening connection and retries

Hi Everyone! If I call NewStream in go-libp2p and receive “connection refused” will libp2p try to establish the connection again? Or I should use a wrapper like openStream? The case is I start several processes on a local machine and connect them to each over.