part of  fix  #142. restclient exception handling