Does not emit close on incorrect socket connection
Merge pull request #154 from sweetieSong/fix/issue-168

fix issue/168