free the resources when wsm_fini() is called
add the client_new/free functions