I guess Python automatically send a close sign when shuts down(ctr+c) the client.
Python
python tcp server