CDAP-489: Added close method for RestClient.