handle connectexception