udptest.py: set timeout to handle with KeyboardInterrupt.