How closing the socket in TCP connection at mc60

Hi,every one.
I have question in function Ql_SOC_Close();
this function is not closing the TCP socket

This is used to close the socket, you can understand that the socket closed, the module can not connect to the tcp server
image