Added a 5 second timeout on the UDP socket in case the server isn't running.