fix an error when permessage-deflate is enabled and closing socket
Merge pull request #411 from nkzawa/patch-0

Fix an error when permessage-deflate is enabled and closing socket