FIxed bug where Chat.js did not exit after an invalidSocketHash error.