stop server loops when their sockets are closed.  add missing override keywords