The registry implementation is not completely out of the kernel. Some implementation classes are always present in the kernel. In the kernel, it should remain only the Registry interface.
For example, if I want to implement a registry based on a DHT framework as Hazelcast, I don't need remaining implementation classes.
I reproduce the problem with the following steps:
If the database is stop during the stop of the container, you will get a stack trace similar to the following:
If the database is stop during the stop of the container, you will get a stack trace similar to the following: