Adding Terminate Hook for NoSQL Proxies