Handle connection timeout.