Fixed memory leaks on clients disconnection. Fixes #61