disconnect when connection fails