[client] move out client closing from closeclient
[client] move out client closing from closeclient

ouistiti-project/libhttpserver,mchalain/libhttpserver,ouistiti-project/libhttpserver,mchalain/libhttpserver