explicitly handle failure to connect