Properly notify listener of UDP socket errors.