Post termination
Your services may initialize components, that must be closed/terminated. You could add a public method to clean up these resources, however you may forget to call these outside the service, before unregistering the service.
Note that both of these cases would normally open up bugs here, if you don't call explicitly a clean-up method. The dependency injector will call the termination method for your registered dependencies, as specified.
Last updated