Do not attempt to connect after instance lookup in final state.

Fix for #185 

I chose to check the state of the connection rather than disable the instance lookup retries, since that uses UDP.