CDAP-489: Added close method for RestClient.
Merge branch 'cdap-489' into CDAP-492