Added the close method, and the persistent adapter in the dependencyinjection.json file.