Resolves a potential memory leak on shutdown.
Make sure we replace the socket after we're able to handle OnDisconnect().
Merge branch 'master' of https://github.com/maxmenten/snoxd-koserver