Fixed: Close UDP socket after sending a message; prevent open sockets from piling up.