modified udp test script to handle socket timeout exception