Fix UDP message order and disconnect