[PATCH 2/2] test: Simpler termination handling for UDP tests