[DataStore][RestResourceHost] Plug memory leaks
[Closure] Add a TODO comment