Added timeout to UDP client socket to eliminate hanging sometimes.