die when connection didn’t work