handle ConnectException