Updated missing API's and added cleanup on XMLSocket close
Merge pull request #169 from skylerparr/master

Updated missing API's and added cleanup on XMLSocket close