Hello Surenkra,
CLOSE_WAIT state indicates that the socket server has received the first FIN signal from the client and the connection is in the process of being closed. The client needs to call the close() to actually close it.
For more details please refer to this blog[
^].
Regards