handle connection timeout