handle connection refuse exception