Make PluginResolutionServiceClient implement Closeable, and use this to close caches.

Our instance participates in the service registry which manages closing all Closeables when the registry is closed.