adding handling for SocketTimeoutException