added clientlist method in pingloop
added close method and shutdown notify