When I need to close the client, I call the close method, but the program reports an error. 
When I need to close the client, I call the close method, but the program reports an error.