fixed bugs
fixed a lot of memory leaks
fixed correct logout
fixed delete client
fixed delete packet