Further fix for UDPSender when being closed/reopened