treat udt.write on broken socket as error event