bug fix: udp flooder won't stop
some refactoring