Chat working, Log class on server, safe closure of server threads

AP-122