Loop has been closed, changed the server to accept a TTree to write to, and have packet buffers getting cleared at the start of each event