Added socket.timeout to internet check