This allows the deletion of the services allocatated by the castor framework, and leak-free unit tests.