TCP chat server's closeHandler bug fix