If connection process is ended with error state, then throws ConnectException, else do nothing.
ConnectException
See Implementation
If connection process is ended with error state, then throws ConnectException, else do nothing.