to capture Java.net.SocketTimeoutException too.