serial to UDP socket management cleanup