Adding close function. This is currently used by Sandesha2/C clients. However this does not include Sandesha2/C specific includes
Changed paths: