Don't call the method that validates/closes the model registry close.

The registry is part of the project service registry, which automatically calls close() on any objects that implement such a method on shutdown.