fixed bug with name list and handling disconnects upon shutdown