explicitly use complex128 for mean of data
capture strange udp errors to disk for later analysis