Add UUID to each event and fix diconnection bugs