Fixed memory leaks on clients disconnection. Fixes #61
Merge pull request #62 from krnekit/shutdown-leak-fix

Fixed memory leaks on clients disconnection. Fixes #61