add connect failed exception handler