added ping support in clustered client
fixed close function of normal client