Handle disconnects and add a mutex to protect the connection list.
Add code to do the first send and add some variables to implement the spec.